package com.yufei.infoExtractor.worker.entity;

/**
 * @author zhaoyufei
 *jvm memory used status
 */
public class JVMStatus {
//虚拟机总对内存大小
private Long totalHeapMemorySize;
//已使用的对内存大小
private Long usedHeapMemorySize;
//已使用堆内存百分比整数
private int hmUsedPercent;
public Long getTotalHeapMemorySize() {
	return totalHeapMemorySize;
}
public void setTotalHeapMemorySize(Long totalHeapMemorySize) {
	this.totalHeapMemorySize = totalHeapMemorySize;
}
public Long getUsedHeapMemorySize() {
	return usedHeapMemorySize;
}
public void setUsedHeapMemorySize(Long usedHeapMemorySize) {
	this.usedHeapMemorySize = usedHeapMemorySize;
}
public int getHmUsedPercent() {
	return (int) (totalHeapMemorySize/usedHeapMemorySize);
}
public void setHmUsedPercent(int hmUsedPercent) {
	this.hmUsedPercent = hmUsedPercent;
}


}
